//
//  SettingCenterCellModel.m
//  GSBlockChain
//
//  Created by guoshikeji_a on 2018/12/29.
//  Copyright © 2018 guoshikeji. All rights reserved.
//

#import "SettingCenterCellModel.h"

//
#import "BCSettingCenterLanguageCell.h"
#import "BCSettingCenterClearCachaCell.h"
#import "BCSettingConversionCell.h"
#import "BCSettingCenterVersionInfoCell.h"

@implementation SettingCenterCellModel

/**
 需要注册的cell
 */
+ (NSMutableArray *)registerClasses {
    NSMutableArray *classes = [NSMutableArray array];
    [classes addObject:NSStringFromClass(BCSettingCenterBaseCell.class)];
    [classes addObject:NSStringFromClass(BCSettingCenterLanguageCell.class)];
    [classes addObject:NSStringFromClass(BCSettingCenterClearCachaCell.class)];
    [classes addObject:NSStringFromClass(BCSettingConversionCell.class)];
    [classes addObject:NSStringFromClass(BCSettingCenterVersionInfoCell.class)];
    //
    return classes;
}



/**
 语言
 */
+ (SettingCenterCellModel *)language {
    SettingCenterCellModel *model = [SettingCenterCellModel new];
    model.titleKey = @"Language";
    model.cellClass = BCSettingCenterLanguageCell.class;
    model.cellType = SettingCenterCellTypeLanguage;
    return model;
}
/**
 清除缓存
 */
+ (SettingCenterCellModel *)clearCache {
    SettingCenterCellModel *model = [SettingCenterCellModel new];
    model.titleKey = @"Clear cache";
    model.cellClass = BCSettingCenterClearCachaCell.class;
    model.cellType = SettingCenterCellTypeClearCacha;
    return model;
}

/**
 兑换
 */
+ (SettingCenterCellModel *)conversion {
    SettingCenterCellModel *model = [SettingCenterCellModel new];
    model.titleKey = @"Conversion";
    model.cellClass = BCSettingConversionCell.class;
    model.cellType = SettingCenterCellTypeConversion;
    return model;
}

/**
 版本信息
 */
+ (SettingCenterCellModel *)applicationInfomation {
    SettingCenterCellModel *model = [SettingCenterCellModel new];
    model.titleKey = @"Application Infomation";
    model.cellClass = BCSettingCenterVersionInfoCell.class;
    model.cellType = SettingCenterCellTypeApplicationInfo;
    return model;
}



@end
